<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class FattureTooViewSocieta extends JView {
	function display($tpl=null) {
		//global $option;
	
		echo 'View Societa <br>';
		$document =& JFactory::getDocument();
		$document->setTitle('Gestione Societa\' FattureToo');

		// render the toolbar on the page. rendering it here means that it is displayed on every view of your component.
		echo FattureTooHelperToolbar::getToolbar();


		$model =& $this->getModel();

		$lista = $model->getSocietaAll();
//		$pagination =& $this->get('Pagination');
/*
	// push data into the template
	//$this->assignRef('pagination', $pagination);
	
	//	$form = $model->getForm();
		for($i = 0; $i < count($lista); $i++)
  		{
      		$row =& $lista[$i];
      		$row->link = JRoute::_('index.php?option=' . $option . '&id=' . $row->id  . '&view=societa');
    	}
		$this->assignRef('lista', $lista);
		$this->assignRef('pageNav', $pageNav);
		*/
		parent::display($tpl);
	}

}

?>